package loppy.dynamics 
{
  import loppy.math.Vec2;
  
  public class ShapeConfig 
  {
    public var localPosition:Vec2  ;
    public var localRotation:Number;
    public var friction     :Number;
    public var restitution  :Number;
    public var density      :Number;
    
    public function ShapeConfig
    (
      localPosition:Vec2   = null, 
      localRotation:Number = 0.0, 
      friction     :Number = 0.5, 
      restitution  :Number = 0.5, 
      density      :Number = 1.0
    )
    {
      if (!localPosition) localPosition = new Vec2(0.0, 0.0);
      
      this.localPosition = localPosition.clone();
      this.localRotation = localRotation;
      this.friction      = friction;
      this.restitution   = restitution;
      this.density       = density;
    }
  }
}
